home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_tripwire.idb / usr / freeware / src / tripwire / patches.z / patches
Encoding:
Text File  |  1999-04-16  |  10.2 KB  |  349 lines

  1. *** ./src/preen.report.c    Wed Aug  3 23:44:34 1994
  2. --- ../tripwire-1.2/./src/preen.report.c    Tue Feb  9 14:19:11 1999
  3. ***************
  4. *** 70,75 ****
  5. --- 70,79 ----
  6.       int unignored;
  7.       FILE *fttyin = NULL, *fttyout = NULL;
  8.   
  9. +     /* Zero some memory to placate purify. */
  10. +     memset(&statnew, 0, sizeof(statnew));
  11. +     memset(&statold, 0, sizeof(statold));
  12.       /* we'll use a local variable for this */
  13.       /*
  14.       pp_update = *ppp_updateentries;
  15. ***************
  16. *** 284,289 ****
  17. --- 288,297 ----
  18.       int i;
  19.       char label[50];
  20.   
  21. +     /* Zero some memory to placate purify. */
  22. +     memset(&statnew, 0, sizeof(statnew));
  23. +     memset(&statold, 0, sizeof(statold));
  24.       (void) fflush(stdout);
  25.       if (!quietmode) {
  26.       fprintf(stderr, "### Phase 5:   Generating observed/expected pairs for changed files\n");
  27. ***************
  28. *** 455,460 ****
  29. --- 463,472 ----
  30.       uint32 mode, ino, nlink, uid, gid, size;
  31.       int entrynum;
  32.       int nfields;
  33. +     /* Zero some memory to placate purify. */
  34. +     memset(&statnew, 0, sizeof(statnew));
  35. +     memset(&statold, 0, sizeof(statold));
  36.   
  37.       /***** changed ******/
  38.   
  39. *** ./src/Makefile    Mon Jul 25 11:40:54 1994
  40. --- ../tripwire-1.2/./src/Makefile    Tue Feb  9 13:21:56 1999
  41. ***************
  42. *** 62,86 ****
  43.       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OFILES) $(LIBS)
  44.   
  45.   $(OSIG1):    ../include/byteorder.h
  46. !     (cd $(SIG1DIR); make CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..")
  47.   $(OSIG2):    ../include/byteorder.h
  48. !     (cd $(SIG2DIR); make CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..")
  49.   $(OSIG3):    ../include/byteorder.h
  50. !     (cd $(SIG3DIR); make CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..")
  51.   $(OSIG4):    ../include/byteorder.h
  52. !     (cd $(SIG4DIR); make CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..")
  53.   $(OSIG5):    ../include/byteorder.h
  54. !     (cd $(SIG5DIR); make CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..")
  55.   $(OSIG6):    ../include/byteorder.h
  56. !     (cd $(SIG6DIR); make CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..")
  57.   $(OSIG7):    ../include/byteorder.h
  58. !     (cd $(SIG7DIR); make CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..")
  59.   $(OSIG8):    ../include/byteorder.h
  60. !     (cd $(SIG8DIR); make CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..")
  61.   
  62.   ../include/byteorder.h ../include/inode.h:
  63. !     (cd ../aux; make CC=$(CC) CFLAGS="$(CFLAGS)"  \
  64. !     LDFLAGS="$(LDFLAGS)" CPP="$(CPP)" SHELL=$(SHELL) all)
  65.   
  66.   help.c:    help.txt help.sh
  67.       $(SHELL) help.sh help.txt > help.c
  68. --- 62,86 ----
  69.       $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OFILES) $(LIBS)
  70.   
  71.   $(OSIG1):    ../include/byteorder.h
  72. !     (cd $(SIG1DIR); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..")
  73.   $(OSIG2):    ../include/byteorder.h
  74. !     (cd $(SIG2DIR); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..")
  75.   $(OSIG3):    ../include/byteorder.h
  76. !     (cd $(SIG3DIR); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..")
  77.   $(OSIG4):    ../include/byteorder.h
  78. !     (cd $(SIG4DIR); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..")
  79.   $(OSIG5):    ../include/byteorder.h
  80. !     (cd $(SIG5DIR); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..")
  81.   $(OSIG6):    ../include/byteorder.h
  82. !     (cd $(SIG6DIR); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..")
  83.   $(OSIG7):    ../include/byteorder.h
  84. !     (cd $(SIG7DIR); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..")
  85.   $(OSIG8):    ../include/byteorder.h
  86. !     (cd $(SIG8DIR); $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -I. -I..")
  87.   
  88.   ../include/byteorder.h ../include/inode.h:
  89. !     (cd ../aux; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)"  \
  90. !     LDFLAGS="$(LDFLAGS)" CPP="$(CPP)" SHELL="$(SHELL)" all)
  91.   
  92.   help.c:    help.txt help.sh
  93.       $(SHELL) help.sh help.txt > help.c
  94. ***************
  95. *** 90,96 ****
  96.   # utils.o were compiled
  97.   siggen:    $(OSIGS) siggen.c utils.o nullsig.o
  98.       $(CC) $(CFLAGS) $(LDFLAGS) -o siggen siggen.c $(OSIGS) nullsig.o utils.o $(LIBS)
  99. !     
  100.   config.lex.c:    config.pre.l
  101.       $(LEX) config.pre.l
  102.       mv lex.yy.c config.lex.c
  103. --- 90,96 ----
  104.   # utils.o were compiled
  105.   siggen:    $(OSIGS) siggen.c utils.o nullsig.o
  106.       $(CC) $(CFLAGS) $(LDFLAGS) -o siggen siggen.c $(OSIGS) nullsig.o utils.o $(LIBS)
  107.   config.lex.c:    config.pre.l
  108.       $(LEX) config.pre.l
  109.       mv lex.yy.c config.lex.c
  110. ***************
  111. *** 110,116 ****
  112.       -rm -f $(OFILES) config.lex.c config.pre.c y.tab.c lex.yy.c help.c \
  113.       siggen.o twconvert.o core .pure cscope.out
  114.       for i in $(SIGDIRS); do \
  115. !         (cd $$i; make clean;) \
  116.       done
  117.   
  118.   
  119. --- 110,116 ----
  120.       -rm -f $(OFILES) config.lex.c config.pre.c y.tab.c lex.yy.c help.c \
  121.       siggen.o twconvert.o core .pure cscope.out
  122.       for i in $(SIGDIRS); do \
  123. !         (cd $$i; $(MAKE) clean;) \
  124.       done
  125.   
  126.   
  127. *** ./src/utils.c    Mon Jul 25 12:23:16 1994
  128. --- ../tripwire-1.2/./src/utils.c    Tue Feb  9 14:23:15 1999
  129. ***************
  130. *** 697,703 ****
  131.   
  132.       print_perm((uint32)statbuf.st_mode);
  133.   
  134. !     (void) printf(" %-9.9s %7d %s", owner, statbuf.st_size,
  135.                           a_time + 4);
  136.       printf(" %s\n", name);
  137.   
  138. --- 697,703 ----
  139.   
  140.       print_perm((uint32)statbuf.st_mode);
  141.   
  142. !     (void) printf(" %-9.9s %7lld %s", owner, (long long) statbuf.st_size,
  143.                           a_time + 4);
  144.       printf(" %s\n", name);
  145.   
  146. *** ./include/config.h    Fri Jul 15 07:02:52 1994
  147. --- ../tripwire-1.2/./include/config.h    Tue Feb  9 17:38:17 1999
  148. ***************
  149. *** 93,99 ****
  150.    *
  151.    *********************************************************************/
  152.   
  153. - /*
  154.   #if !defined(SYSV) || (defined(SYSV) && (SYSV > 2))
  155.   # define CONFIG_PATH     "/usr/adm/tcheck"
  156.   # define DATABASE_PATH   "/usr/adm/tcheck/databases"
  157. --- 93,98 ----
  158. ***************
  159. *** 101,110 ****
  160.   # define CONFIG_PATH     "/usr/local/adm/tcheck"
  161.   # define DATABASE_PATH   "/usr/local/adm/tcheck/databases"
  162.   #endif
  163. - */
  164.   
  165.   #define CONFIG_PATH     "/tmp/genek"
  166.   #define DATABASE_PATH   "/tmp/genek"
  167.   
  168.   /******* name of Tripwire files **************************************
  169.    *
  170. --- 100,111 ----
  171.   # define CONFIG_PATH     "/usr/local/adm/tcheck"
  172.   # define DATABASE_PATH   "/usr/local/adm/tcheck/databases"
  173.   #endif
  174.   
  175. + /*
  176.   #define CONFIG_PATH     "/tmp/genek"
  177.   #define DATABASE_PATH   "/tmp/genek"
  178. + */
  179.   
  180.   /******* name of Tripwire files **************************************
  181.    *
  182. *** ./tests/Makefile    Wed Dec 15 18:03:40 1993
  183. --- ../tripwire-1.2/./tests/Makefile    Tue Feb  9 17:20:19 1999
  184. ***************
  185. *** 32,38 ****
  186.       $(SHELL) test1.sh "$(HOSTNAME)" $(DIST)
  187.   
  188.   ../src/tripwire:
  189. !     (cd ..; make all)
  190.   
  191.   clean:
  192.       rm -f tw.db_TEST.@ @tw.config createfiles $(TEMPFILE) OKSIGS $(TESTDIR)/t_file* OKEXER
  193. --- 32,38 ----
  194.       $(SHELL) test1.sh "$(HOSTNAME)" $(DIST)
  195.   
  196.   ../src/tripwire:
  197. !     (cd ..; $(MAKE) all)
  198.   
  199.   clean:
  200.       rm -f tw.db_TEST.@ @tw.config createfiles $(TEMPFILE) OKSIGS $(TESTDIR)/t_file* OKEXER
  201. *** ./tests/test.inter.sh    Tue Feb 22 02:46:19 1994
  202. --- ../tripwire-1.2/./tests/test.inter.sh    Tue Feb  9 17:20:05 1999
  203. ***************
  204. *** 104,109 ****
  205. --- 104,112 ----
  206.   
  207.       # save a copy
  208.       cp ./databases/* $SAVETWDB
  209. +     # delay to force real timestamp changes
  210. +     sleep 1
  211.   EOF
  212.   
  213.   cat << 'EOF' > $MYCREATETWCONF
  214. *** ./tests/test.update.sh    Tue Feb 22 02:46:22 1994
  215. --- ../tripwire-1.2/./tests/test.update.sh    Tue Feb  9 17:20:09 1999
  216. ***************
  217. *** 103,108 ****
  218. --- 103,111 ----
  219.   
  220.       # save a copy
  221.       cp ./databases/* $SAVETWDB
  222. +     # delay to force real timestamp changes
  223. +     sleep 1
  224.   EOF
  225.   
  226.   cat << 'EOF' > $MYCREATETWCONF
  227. *** ./tests/test.escape.sh    Sat Dec 11 20:39:05 1993
  228. --- ../tripwire-1.2/./tests/test.escape.sh    Tue Feb  9 17:20:45 1999
  229. ***************
  230. *** 102,107 ****
  231. --- 102,110 ----
  232.   
  233.       # save a copy
  234.       cp ./databases/* $SAVETWDB
  235. +     # delay to force real timestamp changes
  236. +     sleep 1
  237.   EOF
  238.   
  239.   cat << 'EOF' > $MYCREATETWCONF
  240. *** ./Makefile    Mon Jul 25 11:59:41 1994
  241. --- ../tripwire-1.2/./Makefile    Tue Feb  9 13:23:24 1999
  242. ***************
  243. *** 52,58 ****
  244.   #CFLAGS = -OG            # Pyramid OSx
  245.   #CFLAGS = -O -Kold        # Pyramid DC/OSx (SVR4)
  246.   #CFLAGS = -DTW_TYPE32='int'    # DEC OSF/1 Alpha (or any other architecture
  247. !                               # where int [but not long] is a 32 bit quantity)
  248.   
  249.   # a C preprocessor (to build inode.h)
  250.   CPP    = $(CC) -E            # common
  251. --- 52,58 ----
  252.   #CFLAGS = -OG            # Pyramid OSx
  253.   #CFLAGS = -O -Kold        # Pyramid DC/OSx (SVR4)
  254.   #CFLAGS = -DTW_TYPE32='int'    # DEC OSF/1 Alpha (or any other architecture
  255. ! #                              # where int [but not long] is a 32 bit quantity)
  256.   
  257.   # a C preprocessor (to build inode.h)
  258.   CPP    = $(CC) -E            # common
  259. ***************
  260. *** 63,69 ****
  261.   LDFLAGS=            # common
  262.   #LDFLAGS= -non_shared        # OSF/1
  263.   #LDFLAGS= -Bstatic        # SunOS 4 (cannot statically link tripwire
  264. !                               #          on Solaris 2.3)
  265.   #LDFLAGS= -dn            # Pyramid DC/OSx (SVR4)
  266.   
  267.   # libraries
  268. --- 63,69 ----
  269.   LDFLAGS=            # common
  270.   #LDFLAGS= -non_shared        # OSF/1
  271.   #LDFLAGS= -Bstatic        # SunOS 4 (cannot statically link tripwire
  272. ! #                              #          on Solaris 2.3)
  273.   #LDFLAGS= -dn            # Pyramid DC/OSx (SVR4)
  274.   
  275.   # libraries
  276. ***************
  277. *** 96,126 ****
  278.   DIST        = tripwire-1.2
  279.   
  280.   all:
  281. !     (cd aux; make CC=$(CC) CFLAGS="$(CFLAGS)"  \
  282. !         LDFLAGS="$(LDFLAGS)" CPP="$(CPP)" SHELL=$(SHELL) all)
  283. !     (cd src; make CC=$(CC) CFLAGS="$(CFLAGS)" LIBS="$(LIBS)" \
  284. !         LDFLAGS="$(LDFLAGS)" CPP="$(CPP)" SHELL=$(SHELL) \
  285.           YACC="$(YACC)" LEX="$(LEX)" all)
  286.   
  287.   install: all
  288. !     (cd src; make INSTALL=$(INSTALL) DESTDIR=$(DESTDIR) install)
  289. !     (cd man; make INSTALL=$(INSTALL) MANDIR=$(MANDIR) install)
  290.   
  291.   test:    all
  292. !     (cd tests; make HOSTNAME=$(HOSTNAME) DIST=$(DIST) SHELL=$(SHELL) \
  293. !             CC=$(CC))
  294.   
  295.   clean:
  296. !     (cd src; make clean)
  297. !     (cd man; make clean)
  298. !     (cd aux; make clean)
  299. !     (cd tests; make clean)
  300.       rm -f core  
  301.   
  302.   clobber: clean
  303. !     (cd src; make clobber)
  304. !     (cd man; make clean)
  305. !     (cd aux; make clean)
  306. !     (cd tests; make clean)
  307.       rm -f core  
  308.       rm -f */*_pure_*.o sigs/*/*_pure_*.o
  309. --- 96,126 ----
  310.   DIST        = tripwire-1.2
  311.   
  312.   all:
  313. !     (cd aux; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)"  \
  314. !         LDFLAGS="$(LDFLAGS)" CPP="$(CPP)" SHELL="$(SHELL)" all)
  315. !     (cd src; $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" LIBS="$(LIBS)" \
  316. !         LDFLAGS="$(LDFLAGS)" CPP="$(CPP)" SHELL="$(SHELL)" \
  317.           YACC="$(YACC)" LEX="$(LEX)" all)
  318.   
  319.   install: all
  320. !     (cd src; $(MAKE) INSTALL="$(INSTALL)" DESTDIR="$(DESTDIR)" install)
  321. !     (cd man; $(MAKE) INSTALL="$(INSTALL)" MANDIR="$(MANDIR)" install)
  322.   
  323.   test:    all
  324. !     (cd tests; $(MAKE) HOSTNAME="$(HOSTNAME)" DIST="$(DIST)" \
  325. !             SHELL="$(SHELL)" CC="$(CC)")
  326.   
  327.   clean:
  328. !     (cd src; $(MAKE) clean)
  329. !     (cd man; $(MAKE) clean)
  330. !     (cd aux; $(MAKE) clean)
  331. !     (cd tests; $(MAKE) clean)
  332.       rm -f core  
  333.   
  334.   clobber: clean
  335. !     (cd src; $(MAKE) clobber)
  336. !     (cd man; $(MAKE) clean)
  337. !     (cd aux; $(MAKE) clean)
  338. !     (cd tests; $(MAKE) clean)
  339.       rm -f core  
  340.       rm -f */*_pure_*.o sigs/*/*_pure_*.o
  341.